﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MengLin.OOP.DesignPattern.Proxy.BuyTicket
{
    /// <summary>
    /// 售票中心买票
    /// </summary>
    public class TicketCentre : ITicket
    {
        /// <summary>
        /// 买票
        /// </summary>
        public void BuyTicket()
        {
            Console.WriteLine($"{nameof(TicketCentre)} Buy Ticket");
        }

        /// <summary>
        /// 查询票
        /// </summary>
        public void QueryTicket()
        {
            Console.WriteLine($"{nameof(TicketCentre)} Query Ticket");
        }
    }
}
